package cn.iocoder.yudao.module.api.shop;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;
import cn.iocoder.yudao.framework.common.exception.enums.ServiceErrorCodeRange;

/**
 * 错误码类型
 */
public interface ErrorCodeConstants extends ServiceErrorCodeRange {

    ErrorCode SHOP_INFO_NOT_EXISTS = new ErrorCode(1_005_000_001, "店铺信息不存在");
    ErrorCode SHOP_INFO_AUDIT_WAIT = new ErrorCode(1_005_000_002, "店铺信息等待审核");
    ErrorCode SHOP_INFO_AUDIT_FAIL = new ErrorCode(1_005_000_003, "店铺信息审核失败：{}");
    ErrorCode SHOP_INFO_EXISTS_UNAVAILABLE = new ErrorCode(1_005_000_008, "店铺还未开通");
    ErrorCode SHOP_INFO_STATUS_DENIED = new ErrorCode(1_005_000_016, "营业状态不能设置为：{}");
    ErrorCode SHOP_INFO_CATEGORY_NOT_FIRST_LEVEL = new ErrorCode(1_005_000_017, "商家入驻的行业类目只能是一级类目");

    ErrorCode CATEGORY_NOT_EXISTS = new ErrorCode(1_005_100_000, "行业类目不存在");
    ErrorCode CATEGORY_PARENT_NOT_EXISTS = new ErrorCode(1_005_100_001, "父类目不存在");
    ErrorCode CATEGORY_CODE_DUPLICATE = new ErrorCode(1_005_100_002, "类目编码重复");
    ErrorCode CATEGORY_EXISTS_CHILDREN = new ErrorCode(1_005_100_003, "存在子类目，无法删除");
    ErrorCode CATEGORY_DISABLED = new ErrorCode(1_005_100_004, "行业类目({})已禁用，无法使用");
    ErrorCode CATEGORY_HAVE_BIND_SHOP = new ErrorCode(1_005_100_005, "行业类目下存在店铺，无法删除");
    ErrorCode CATEGORY_LEVEL_ERROR_FOR_SHOP_SAVE = new ErrorCode(1_005_100_006, "行业类目不正确，原因：必须使用第二级及以下类目");
    ErrorCode CATEGORY_PARENT_CAN_NOT_SELF = new ErrorCode(1_005_001_007, "父类目不能是自己");
    ErrorCode CATEGORY_PARENT_CAN_NOT_FIRST_LEVEL = new ErrorCode(1_005_001_008, "父类目不能是顶级的主营类目");
    ErrorCode CATEGORY_FIRST_LEVEL_DELETE_FORBIDDEN = new ErrorCode(1_005_100_009, "一级类目禁止删除");
    ErrorCode CATEGORY_DEPOSIT_MUST_FIRST_LEVEL = new ErrorCode(1_005_100_010, "必须是一级类目才能设置保证金");

    ErrorCode SHOP_ADMIN_NOT_EXISTS = new ErrorCode(1_005_300_001, "店铺商户不存在");
    ErrorCode SHOP_ADMIN_OLD_PASSWORD_NOT_MATCH = new ErrorCode(1_005_300_002, "店铺商户旧密码不正确");

    ErrorCode ENTER_PACKAGE_NOT_EXISTS = new ErrorCode(1_005_400_001, "店铺入驻套餐不存在");
    ErrorCode ENTER_PACKAGE_FREE_DINED = new ErrorCode(1_005_400_002, "店铺信息还未审核通过，不能赠送套餐");
    ErrorCode ENTER_ORDER_NOT_EXISTS = new ErrorCode(1_005_400_003, "店铺入驻缴费单不存在");
    ErrorCode ENTER_ORDER_UPDATE_PAID_PAY_ORDER_ID_ERROR = new ErrorCode(1_005_400_006, "店铺入驻缴费单更新支付状态失败，支付单编号不匹配");
    ErrorCode ENTER_ORDER_UPDATE_PAID_STATUS_IS_PAID = new ErrorCode(1_005_400_007, "店铺入驻缴费单更新支付状态失败，已经是已支付状态");
    ErrorCode ENTER_ORDER_UPDATE_PAID_PAY_ORDER_UNPAID = new ErrorCode(1_005_400_008, "店铺入驻缴费单更新支付状态失败，支付单还未支付");


}
